package com.woniu.p2p.behindServiceImpl;

import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import com.woniu.p2p.behindService.OperationPerformanceService;
import com.woniu.p2p.entity.Homepage;
import com.woniu.p2p.mapper.HomepageMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * OperationPerformanceServiceImpl
 *
 */
@Service
public class OperationPerformanceServiceImpl implements OperationPerformanceService {


    @Autowired
    HomepageMapper homepageMapper;
    @Override
    public PageInfo<Homepage> selectAllByName( Integer start) {
        PageHelper.startPage(start,3);
        List<Homepage> list=homepageMapper.selectAll();
        PageInfo<Homepage> pageInfo=new PageInfo<>(list);
        return pageInfo;
    }
}
